package model

import "time"

type User struct {
	Id       uint64    `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Mobile   string    `gorm:"column:mobile;type:varchar(255);not null;" json:"mobile"`
	Password string    `gorm:"column:password;type:varchar(255);not null;" json:"password"`
	CreateAt time.Time `gorm:"column:create_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"create_at"`
	UpdateAt time.Time `gorm:"column:update_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"update_at"`
	DeleteAt time.Time `gorm:"column:delete_at;type:datetime(3);default:NULL;" json:"delete_at"`
}

func (u *User) TableName() string {
	return "user"
}
